package com.dd.ms.auth.utils.converter;

import com.dd.ms.auth.pojo.DO.RoleDO;
import com.dd.ms.auth.vo.RoleVO;
import org.springframework.beans.BeanUtils;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/10 9:51
 * @Description 类功能作用说明
 */
public class RoleConverter {

    public static RoleVO toVO(RoleDO roleDO) {
        if (roleDO == null) {
            return null;
        }

        RoleVO roleVO = new RoleVO();
        BeanUtils.copyProperties(roleDO, roleVO);
        return roleVO;
    }
}
